<!-- HTML header for doxygen 1.9.1-->
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.9.4" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>NumCpp: Vec3.hpp Source File</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
    <!-- ... other metadata & script includes ... -->
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeDarkModeToggle.init()
    </script>
    <script type="text/javascript"
        src="../doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeFragmentCopyButton.init()
    </script>
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-paragraph-link.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeParagraphLink.init()
    </script>
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-interactive-toc.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeInteractiveToc.init()
    </script>
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <div id="titlearea">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                    <tr style="height: 56px;">
                        <td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
                        <td id="projectalign" style="padding-left: 0.5em;">
                            <div id="projectname">NumCpp
                                &#160;<span id="projectnumber">2.12.1</span>
                            </div>
                            <div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- end header part --><!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('_vec3_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">Vec3.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="_vec3_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &lt;initializer_list&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">#include &quot;<a class="code" href="_error_8hpp.html">NumCpp/Core/Internal/Error.hpp</a>&quot;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#include &quot;<a class="code" href="hypot_8hpp.html">NumCpp/Functions/hypot.hpp</a>&quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#include &quot;<a class="code" href="_nd_array_8hpp.html">NumCpp/NdArray.hpp</a>&quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor">#include &quot;<a class="code" href="essentially_equal_8hpp.html">NumCpp/Utils/essentiallyEqual.hpp</a>&quot;</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#include &quot;<a class="code" href="_utils_2interp_8hpp.html">NumCpp/Utils/interp.hpp</a>&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#include &quot;<a class="code" href="_vec2_8hpp.html">NumCpp/Vector/Vec2.hpp</a>&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="comment">//====================================================================================</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacenc.html">nc</a></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>{</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    <span class="comment">//================================================================================</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="comment">// Class Description:</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html">   50</a></span><span class="comment"></span>    <span class="keyword">class </span><a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>        <span class="comment">//====================================Attributes==============================</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">   54</a></span>        <span class="keywordtype">double</span> <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a>{ 0. };</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">   55</a></span>        <span class="keywordtype">double</span> <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a>{ 0. };</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">   56</a></span>        <span class="keywordtype">double</span> <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a>{ 0. };</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">   62</a></span><span class="comment"></span>        <span class="keyword">constexpr</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a6b0bc18cc9594a7d81361c518d543130">   72</a></span><span class="comment"></span>        <span class="keyword">constexpr</span> <a class="code hl_function" href="classnc_1_1_vec3.html#a6b0bc18cc9594a7d81361c518d543130">Vec3</a>(<span class="keywordtype">double</span> inX, <span class="keywordtype">double</span> inY, <span class="keywordtype">double</span> inZ) noexcept :</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a>(inX),</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a>(inY),</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a>(inZ)</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>        {</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>        }</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a4056d1e369726710d6f1049b277486dd">   85</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1_vec3.html#a4056d1e369726710d6f1049b277486dd">Vec3</a>(<span class="keyword">const</span> std::initializer_list&lt;double&gt;&amp; inList)</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>        {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>            <span class="keywordflow">if</span> (inList.size() != 3)</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>            {</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>                <a class="code hl_define" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;input initializer list must have a size = 3&quot;</span>);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>            }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> = *inList.begin();</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> = *(inList.begin() + 1);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> = *(inList.begin() + 2);</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>        }</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a317d66ff62f645b69571905c210ae833">  103</a></span><span class="comment"></span>        <span class="keyword">constexpr</span> <a class="code hl_function" href="classnc_1_1_vec3.html#a317d66ff62f645b69571905c210ae833">Vec3</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec2.html">Vec2</a>&amp; vec2) noexcept :</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a>(vec2.x),</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a>(vec2.y)</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>        {</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>        }</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a4668419f4c870900466d4aa198247767">  115</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1_vec3.html#a4668419f4c870900466d4aa198247767">Vec3</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a>&amp; ndArray)</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>        {</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>            <span class="keywordflow">if</span> (ndArray.<a class="code hl_function" href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">size</a>() != 3)</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>            {</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>                <a class="code hl_define" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;input NdArray must have a size = 3&quot;</span>);</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>            }</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> = ndArray[0];</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> = ndArray[1];</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> = ndArray[2];</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>        }</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a523ca42cbdd088851cc5a299da988cee">  134</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1_vec3.html#a523ca42cbdd088851cc5a299da988cee">angle</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; otherVec) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>        {</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>            <span class="keywordtype">double</span> dotProduct = <a class="code hl_function" href="classnc_1_1_vec3.html#ac9f2bf549a4b800f140de060a0281a7e">dot</a>(otherVec);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>            dotProduct /= <a class="code hl_function" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">norm</a>();</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>            dotProduct /= otherVec.norm();</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>            <span class="comment">// clamp the value to the acos range just to be safe</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>            dotProduct = <a class="code hl_function" href="namespacenc.html#af37a6766f3bd9a7f83d32834d2a699b1">std::max</a>(<a class="code hl_function" href="namespacenc.html#a10ee4cd59b844c5dd99106a5dee12009">std::min</a>(dotProduct, 1.), -1.);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>            <span class="keywordflow">return</span> std::acos(dotProduct);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        }</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a44e50b4b49011ec94548558600c0b17c">  152</a></span><span class="comment"></span>        <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#a44e50b4b49011ec94548558600c0b17c">back</a>() noexcept</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>        {</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(0., 0., -1.); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>        }</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a4f3cfcbd67a402820cc8e0576dccd2e4">  165</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#a4f3cfcbd67a402820cc8e0576dccd2e4">clampMagnitude</a>(<span class="keywordtype">double</span> maxLength) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>        {</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> magnitude = <a class="code hl_function" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">norm</a>();</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>            <span class="keywordflow">if</span> (magnitude &lt;= maxLength)</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>            {</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>            }</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>            <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> returnVec = <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(*this).normalize();</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>            returnVec *= maxLength;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>            <span class="keywordflow">return</span> returnVec;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>        }</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#af8173f6e61e9a63beae3092fd8dc4378">  185</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#af8173f6e61e9a63beae3092fd8dc4378">cross</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; otherVec) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>        {</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> crossX = <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> * otherVec.z - <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> * otherVec.y;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> crossY = -(<a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> * otherVec.z - <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> * otherVec.x);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> crossZ = <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> * otherVec.y - <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> * otherVec.x;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(crossX, crossY, crossZ); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>        }</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span> </div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a301f3edcb8cb17e7e3e5dbdd5255bdd2">  201</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1_vec3.html#a301f3edcb8cb17e7e3e5dbdd5255bdd2">distance</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; otherVec) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>        {</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>            <span class="keywordflow">return</span> (<a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(*<span class="keyword">this</span>) -= otherVec).norm();</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>        }</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span> </div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#ac9f2bf549a4b800f140de060a0281a7e">  213</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1_vec3.html#ac9f2bf549a4b800f140de060a0281a7e">dot</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; otherVec) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>        {</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>            <span class="keywordflow">return</span> <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> * otherVec.x + <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> * otherVec.y + <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> * otherVec.z;</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>        }</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a4ea0c82948117391c6c42a99e3093f91">  224</a></span><span class="comment"></span>        <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#a4ea0c82948117391c6c42a99e3093f91">down</a>() noexcept</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span>        {</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(0., -1., 0.); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>        }</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span> </div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#ac5a33c96c05a8c856b774c24f4a1965d">  235</a></span><span class="comment"></span>        <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#ac5a33c96c05a8c856b774c24f4a1965d">forward</a>() noexcept</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>        {</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(0., 0., 1.); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span>        }</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span> </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a7e6730d945972ecda1815c1d41f5074c">  246</a></span><span class="comment"></span>        <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#a7e6730d945972ecda1815c1d41f5074c">left</a>() noexcept</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>        {</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(-1., 0., 0.); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>        }</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span> </div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#ab4878c8a4ebcd94fd0baf93059b50ac6">  259</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#ab4878c8a4ebcd94fd0baf93059b50ac6">lerp</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; otherVec, <span class="keywordtype">double</span> t) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>        {</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>            t = <a class="code hl_function" href="namespacenc.html#af37a6766f3bd9a7f83d32834d2a699b1">std::max</a>(<a class="code hl_function" href="namespacenc.html#a10ee4cd59b844c5dd99106a5dee12009">std::min</a>(t, 1.), 0.);</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>            <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> trajectory = otherVec;</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>            trajectory -= *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> xInterp = <a class="code hl_function" href="namespacenc_1_1utils.html#a691a52cfcc401340af355bd53869600e">utils::interp</a>(0., trajectory.<a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a>, t);</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> yInterp = <a class="code hl_function" href="namespacenc_1_1utils.html#a691a52cfcc401340af355bd53869600e">utils::interp</a>(0., trajectory.<a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a>, t);</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> zInterp = <a class="code hl_function" href="namespacenc_1_1utils.html#a691a52cfcc401340af355bd53869600e">utils::interp</a>(0., trajectory.<a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a>, t);</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span> </div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(*<span class="keyword">this</span>) += <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(xInterp, yInterp, zInterp);</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>        }</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span> </div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">  278</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">norm</a>() const noexcept</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span>        {</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacenc.html#a4648674053cd83851d9549bbcc7a8481">hypot</a>(<a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a>, <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a>, <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a>);</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>        }</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span> </div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a6356b462b11a156b923a7c79b9747c25">  289</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#a6356b462b11a156b923a7c79b9747c25">normalize</a>() const noexcept</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span>        {</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(*<span class="keyword">this</span>) /= <a class="code hl_function" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">norm</a>();</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span>        }</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span> </div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#aaba2a76701fbf17582641cefeb513f1c">  301</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#aaba2a76701fbf17582641cefeb513f1c">project</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; otherVec) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>        {</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> projectedMagnitude = <a class="code hl_function" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">norm</a>() * <a class="code hl_function" href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">std::cos</a>(<a class="code hl_function" href="classnc_1_1_vec3.html#a523ca42cbdd088851cc5a299da988cee">angle</a>(otherVec));</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span>            <span class="keywordflow">return</span> otherVec.normalize() *= projectedMagnitude;</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span>        }</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span> </div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#af8862aed471260a45c7691c7c5c6b016">  313</a></span><span class="comment"></span>        <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#af8862aed471260a45c7691c7c5c6b016">right</a>() noexcept</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span>        {</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno">  315</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(1., 0., 0.); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>        }</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span> </div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a29fad7279d8da7f78805fee0c6d73408">  324</a></span><span class="comment"></span>        [[nodiscard]] std::string <a class="code hl_function" href="classnc_1_1_vec3.html#a29fad7279d8da7f78805fee0c6d73408">toString</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno">  326</span>            std::stringstream stream;</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span>            stream &lt;&lt; <span class="stringliteral">&quot;Vec3[&quot;</span> &lt;&lt; <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span> &lt;&lt; <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> &lt;&lt; <span class="stringliteral">&quot;, &quot;</span> &lt;&lt; <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> &lt;&lt; <span class="stringliteral">&quot;]&quot;</span>;</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>            <span class="keywordflow">return</span> stream.str();</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span>        }</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span> </div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno">  332</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#aea160d6b860e0ed5d931c9494229b530">  337</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a> <a class="code hl_function" href="classnc_1_1_vec3.html#aea160d6b860e0ed5d931c9494229b530">toNdArray</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span>            <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a> returnArray = { <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a>, <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a>, <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> };</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>            <span class="keywordflow">return</span> returnArray.<a class="code hl_function" href="classnc_1_1_nd_array.html#a29c62da7ad489f4fc0bc706800820807">transpose</a>();</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span>        }</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span> </div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#aafc14ccae575994733d664eb3f4a6e66">  349</a></span><span class="comment"></span>        <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="classnc_1_1_vec3.html#aafc14ccae575994733d664eb3f4a6e66">up</a>() noexcept</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span>        {</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a>(0., 1., 0.); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span>        }</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno">  353</span> </div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno">  354</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno">  355</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a2cc63855706091881f765b63dcf52c44">  361</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1_vec3.html#a2cc63855706091881f765b63dcf52c44">operator==</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span>        {</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(<a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a>, rhs.x) &amp;&amp; <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(<a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a>, rhs.y) &amp;&amp;</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno">  364</span>                   <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(<a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a>, rhs.z);</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno">  365</span>        }</div>
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno">  366</span> </div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno">  367</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno">  368</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#aad142760da8d2b3493462b4542e42673">  374</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1_vec3.html#aad142760da8d2b3493462b4542e42673">operator!=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span>        {</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span>            <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == rhs);</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span>        }</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span> </div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno">  380</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#af3203959755167f0be8f1a97625c33c6">  386</a></span><span class="comment"></span>        <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; <a class="code hl_function" href="classnc_1_1_vec3.html#af3203959755167f0be8f1a97625c33c6">operator+=</a>(<span class="keywordtype">double</span> scalar) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span>        {</div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> += scalar;</div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> += scalar;</div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> += scalar;</div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span>            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span>        }</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span> </div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno">  395</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#adc1cd136818db0b150d1f141b917319c">  401</a></span><span class="comment"></span>        <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; <a class="code hl_function" href="classnc_1_1_vec3.html#adc1cd136818db0b150d1f141b917319c">operator+=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span>        {</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno">  403</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> += rhs.x;</div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> += rhs.y;</div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> += rhs.z;</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span>            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno">  407</span>        }</div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno">  408</span> </div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a8e8cfef3d9f3f23df9fde19e5bf4a79d">  416</a></span><span class="comment"></span>        <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; <a class="code hl_function" href="classnc_1_1_vec3.html#a8e8cfef3d9f3f23df9fde19e5bf4a79d">operator-=</a>(<span class="keywordtype">double</span> scalar) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno">  417</span>        {</div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno">  418</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> -= scalar;</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> -= scalar;</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> -= scalar;</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span>            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span>        }</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span> </div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno">  425</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a7d2185abecc01b56abcec64dffde3695">  431</a></span><span class="comment"></span>        <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; <a class="code hl_function" href="classnc_1_1_vec3.html#a7d2185abecc01b56abcec64dffde3695">operator-=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno">  432</span>        {</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> -= rhs.x;</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> -= rhs.y;</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> -= rhs.z;</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>        }</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span> </div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a9831d738bbccbdc86ce117b18f107c0f">  446</a></span><span class="comment"></span>        <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; <a class="code hl_function" href="classnc_1_1_vec3.html#a9831d738bbccbdc86ce117b18f107c0f">operator*=</a>(<span class="keywordtype">double</span> scalar) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span>        {</div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> *= scalar;</div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno">  449</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> *= scalar;</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> *= scalar;</div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span>            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span>        }</div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span> </div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span>        <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"><a class="line" href="classnc_1_1_vec3.html#a8e27eb76c794d600bc295748cddb6eda">  461</a></span><span class="comment"></span>        <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; <a class="code hl_function" href="classnc_1_1_vec3.html#a8e27eb76c794d600bc295748cddb6eda">operator/=</a>(<span class="keywordtype">double</span> scalar) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno">  462</span>        {</div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno">  463</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> /= scalar;</div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno">  464</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> /= scalar;</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno">  465</span>            <a class="code hl_variable" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> /= scalar;</div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno">  466</span>            <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span>        }</div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span>    };</div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span> </div>
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno">  470</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno">  471</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"><a class="line" href="namespacenc.html#a5ded64221f16b9a774bc35de58204e28">  478</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a7f453c0bb9e72eb38f1c84139cc1d5f4">operator+</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; lhs, <span class="keywordtype">double</span> rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno">  479</span>    {</div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno">  480</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(lhs) += rhs;</div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno">  481</span>    }</div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span> </div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno">  484</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno"><a class="line" href="namespacenc.html#a26bec2e52fdab966f0f3714d1e2ea8bb">  491</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a7f453c0bb9e72eb38f1c84139cc1d5f4">operator+</a>(<span class="keywordtype">double</span> lhs, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno">  492</span>    {</div>
<div class="line"><a id="l00493" name="l00493"></a><span class="lineno">  493</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(rhs) += lhs;</div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno">  494</span>    }</div>
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno">  495</span> </div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno">  497</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno"><a class="line" href="namespacenc.html#ac6f8a785c25c21f9b4b8328dfd7da6c6">  504</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a7f453c0bb9e72eb38f1c84139cc1d5f4">operator+</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno">  505</span>    {</div>
<div class="line"><a id="l00506" name="l00506"></a><span class="lineno">  506</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(lhs) += rhs;</div>
<div class="line"><a id="l00507" name="l00507"></a><span class="lineno">  507</span>    }</div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno">  508</span> </div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00515" name="l00515"></a><span class="lineno"><a class="line" href="namespacenc.html#a7227073082d530baaf7ebb96ee06995b">  515</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a1ee81be5de9d41e4de28313054cf5581">operator-</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; vec) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno">  516</span>    {</div>
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno">  517</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(-vec.x, -vec.y, -vec.z); <span class="comment">// NOLINT(modernize-return-braced-init-list)</span></div>
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno">  518</span>    }</div>
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno">  519</span> </div>
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno">  520</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno">  521</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno"><a class="line" href="namespacenc.html#a6935362e6d04b73f04c0e8191ae3098d">  528</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a1ee81be5de9d41e4de28313054cf5581">operator-</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; lhs, <span class="keywordtype">double</span> rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno">  529</span>    {</div>
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno">  530</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(lhs) -= rhs;</div>
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno">  531</span>    }</div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno">  532</span> </div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno">  533</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno">  534</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno"><a class="line" href="namespacenc.html#af87da9c66c9e535066221e4f85f3ed90">  541</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a1ee81be5de9d41e4de28313054cf5581">operator-</a>(<span class="keywordtype">double</span> lhs, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno">  542</span>    {</div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno">  543</span>        <span class="keywordflow">return</span> -<a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(rhs) += lhs;</div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno">  544</span>    }</div>
<div class="line"><a id="l00545" name="l00545"></a><span class="lineno">  545</span> </div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno">  546</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno">  547</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno"><a class="line" href="namespacenc.html#a7c61e5d343e6439c26abb36db5a0b948">  554</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a1ee81be5de9d41e4de28313054cf5581">operator-</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00555" name="l00555"></a><span class="lineno">  555</span>    {</div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno">  556</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(lhs) -= rhs;</div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno">  557</span>    }</div>
<div class="line"><a id="l00558" name="l00558"></a><span class="lineno">  558</span> </div>
<div class="line"><a id="l00559" name="l00559"></a><span class="lineno">  559</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00560" name="l00560"></a><span class="lineno">  560</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno"><a class="line" href="namespacenc.html#af51c9efd8dbadbdc664972bd96583a72">  567</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#aebe965a6c53907dc90c0b604da936078">operator*</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; lhs, <span class="keywordtype">double</span> rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno">  568</span>    {</div>
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno">  569</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(lhs) *= rhs;</div>
<div class="line"><a id="l00570" name="l00570"></a><span class="lineno">  570</span>    }</div>
<div class="line"><a id="l00571" name="l00571"></a><span class="lineno">  571</span> </div>
<div class="line"><a id="l00572" name="l00572"></a><span class="lineno">  572</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno">  573</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00580" name="l00580"></a><span class="lineno"><a class="line" href="namespacenc.html#af4ecba4e059c6dcf672644a3c1bff75d">  580</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#aebe965a6c53907dc90c0b604da936078">operator*</a>(<span class="keywordtype">double</span> lhs, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00581" name="l00581"></a><span class="lineno">  581</span>    {</div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno">  582</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(rhs) *= lhs;</div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno">  583</span>    }</div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno">  584</span> </div>
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno">  585</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno">  586</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno"><a class="line" href="namespacenc.html#a39b128708b2225a00de527c8ec83d72a">  594</a></span><span class="comment"></span>    <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code hl_function" href="namespacenc.html#aebe965a6c53907dc90c0b604da936078">operator*</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno">  595</span>    {</div>
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno">  596</span>        <span class="keywordflow">return</span> lhs.dot(rhs);</div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno">  597</span>    }</div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno">  598</span> </div>
<div class="line"><a id="l00599" name="l00599"></a><span class="lineno">  599</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno">  600</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno"><a class="line" href="namespacenc.html#a0a070b4ec8a29ee1a357c53857d4778a">  607</a></span><span class="comment"></span>    <span class="keyword">inline</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a> <a class="code hl_function" href="namespacenc.html#a3353e2e3983e12e07ed79c022c4df5e8">operator/</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; lhs, <span class="keywordtype">double</span> rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span>    {</div>
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno">  609</span>        <span class="keywordflow">return</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>(lhs) /= rhs;</div>
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno">  610</span>    }</div>
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno">  611</span> </div>
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno">  612</span>    <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno">  613</span>    <span class="comment">// Method Description:</span></div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno"><a class="line" href="namespacenc.html#a7c3d91df2b23cca368428430d131e6f2">  620</a></span><span class="comment"></span>    <span class="keyword">inline</span> std::ostream&amp; <a class="code hl_function" href="namespacenc.html#a7c4b9b8d4ef61464e8ab35ad09b399c9">operator&lt;&lt;</a>(std::ostream&amp; stream, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; vec)</div>
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno">  621</span>    {</div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno">  622</span>        stream &lt;&lt; vec.<a class="code hl_function" href="classnc_1_1_vec3.html#a29fad7279d8da7f78805fee0c6d73408">toString</a>() &lt;&lt; std::endl;</div>
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno">  623</span>        <span class="keywordflow">return</span> stream;</div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno">  624</span>    }</div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno">  625</span>} <span class="comment">// namespace nc</span></div>
<div class="ttc" id="a_error_8hpp_html"><div class="ttname"><a href="_error_8hpp.html">Error.hpp</a></div></div>
<div class="ttc" id="a_error_8hpp_html_af2aff1172060367b9c5398fa097fa8fd"><div class="ttname"><a href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a></div><div class="ttdeci">#define THROW_INVALID_ARGUMENT_ERROR(msg)</div><div class="ttdef"><b>Definition:</b> Error.hpp:37</div></div>
<div class="ttc" id="a_nd_array_8hpp_html"><div class="ttname"><a href="_nd_array_8hpp.html">NdArray.hpp</a></div></div>
<div class="ttc" id="a_utils_2interp_8hpp_html"><div class="ttname"><a href="_utils_2interp_8hpp.html">interp.hpp</a></div></div>
<div class="ttc" id="a_vec2_8hpp_html"><div class="ttname"><a href="_vec2_8hpp.html">Vec2.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html"><div class="ttname"><a href="classnc_1_1_nd_array.html">nc::NdArray&lt; double &gt;</a></div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_a055875abbe80163ca91328c0fa8ffbfa"><div class="ttname"><a href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">nc::NdArray::size</a></div><div class="ttdeci">size_type size() const noexcept</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:4524</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_a29c62da7ad489f4fc0bc706800820807"><div class="ttname"><a href="classnc_1_1_nd_array.html#a29c62da7ad489f4fc0bc706800820807">nc::NdArray::transpose</a></div><div class="ttdeci">self_type transpose() const</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:4882</div></div>
<div class="ttc" id="aclassnc_1_1_vec2_html"><div class="ttname"><a href="classnc_1_1_vec2.html">nc::Vec2</a></div><div class="ttdoc">Holds a 2D vector.</div><div class="ttdef"><b>Definition:</b> Vec2.hpp:49</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html"><div class="ttname"><a href="classnc_1_1_vec3.html">nc::Vec3</a></div><div class="ttdoc">Holds a 3D vector.</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:51</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a0896ee691f46ce0bd669b869fe6acb41"><div class="ttname"><a href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">nc::Vec3::z</a></div><div class="ttdeci">double z</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:56</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a29fad7279d8da7f78805fee0c6d73408"><div class="ttname"><a href="classnc_1_1_vec3.html#a29fad7279d8da7f78805fee0c6d73408">nc::Vec3::toString</a></div><div class="ttdeci">std::string toString() const</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:324</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a2cc63855706091881f765b63dcf52c44"><div class="ttname"><a href="classnc_1_1_vec3.html#a2cc63855706091881f765b63dcf52c44">nc::Vec3::operator==</a></div><div class="ttdeci">bool operator==(const Vec3 &amp;rhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:361</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a301f3edcb8cb17e7e3e5dbdd5255bdd2"><div class="ttname"><a href="classnc_1_1_vec3.html#a301f3edcb8cb17e7e3e5dbdd5255bdd2">nc::Vec3::distance</a></div><div class="ttdeci">double distance(const Vec3 &amp;otherVec) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:201</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a317d66ff62f645b69571905c210ae833"><div class="ttname"><a href="classnc_1_1_vec3.html#a317d66ff62f645b69571905c210ae833">nc::Vec3::Vec3</a></div><div class="ttdeci">constexpr Vec3(const Vec2 &amp;vec2) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:103</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a4056d1e369726710d6f1049b277486dd"><div class="ttname"><a href="classnc_1_1_vec3.html#a4056d1e369726710d6f1049b277486dd">nc::Vec3::Vec3</a></div><div class="ttdeci">Vec3(const std::initializer_list&lt; double &gt; &amp;inList)</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:85</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a44e50b4b49011ec94548558600c0b17c"><div class="ttname"><a href="classnc_1_1_vec3.html#a44e50b4b49011ec94548558600c0b17c">nc::Vec3::back</a></div><div class="ttdeci">static constexpr Vec3 back() noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:152</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a4668419f4c870900466d4aa198247767"><div class="ttname"><a href="classnc_1_1_vec3.html#a4668419f4c870900466d4aa198247767">nc::Vec3::Vec3</a></div><div class="ttdeci">Vec3(const NdArray&lt; double &gt; &amp;ndArray)</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:115</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a4ea0c82948117391c6c42a99e3093f91"><div class="ttname"><a href="classnc_1_1_vec3.html#a4ea0c82948117391c6c42a99e3093f91">nc::Vec3::down</a></div><div class="ttdeci">static constexpr Vec3 down() noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:224</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a4f3cfcbd67a402820cc8e0576dccd2e4"><div class="ttname"><a href="classnc_1_1_vec3.html#a4f3cfcbd67a402820cc8e0576dccd2e4">nc::Vec3::clampMagnitude</a></div><div class="ttdeci">Vec3 clampMagnitude(double maxLength) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:165</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a523ca42cbdd088851cc5a299da988cee"><div class="ttname"><a href="classnc_1_1_vec3.html#a523ca42cbdd088851cc5a299da988cee">nc::Vec3::angle</a></div><div class="ttdeci">double angle(const Vec3 &amp;otherVec) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:134</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a6356b462b11a156b923a7c79b9747c25"><div class="ttname"><a href="classnc_1_1_vec3.html#a6356b462b11a156b923a7c79b9747c25">nc::Vec3::normalize</a></div><div class="ttdeci">Vec3 normalize() const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:289</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a6b0bc18cc9594a7d81361c518d543130"><div class="ttname"><a href="classnc_1_1_vec3.html#a6b0bc18cc9594a7d81361c518d543130">nc::Vec3::Vec3</a></div><div class="ttdeci">constexpr Vec3(double inX, double inY, double inZ) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:72</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a6c177e1f5c00584279a0527d3053dee8"><div class="ttname"><a href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">nc::Vec3::norm</a></div><div class="ttdeci">double norm() const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:278</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a7d2185abecc01b56abcec64dffde3695"><div class="ttname"><a href="classnc_1_1_vec3.html#a7d2185abecc01b56abcec64dffde3695">nc::Vec3::operator-=</a></div><div class="ttdeci">Vec3 &amp; operator-=(const Vec3 &amp;rhs) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:431</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a7e6730d945972ecda1815c1d41f5074c"><div class="ttname"><a href="classnc_1_1_vec3.html#a7e6730d945972ecda1815c1d41f5074c">nc::Vec3::left</a></div><div class="ttdeci">static constexpr Vec3 left() noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:246</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a7f71dd08d58a1327739de6041e3362bb"><div class="ttname"><a href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">nc::Vec3::x</a></div><div class="ttdeci">double x</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:54</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a8e27eb76c794d600bc295748cddb6eda"><div class="ttname"><a href="classnc_1_1_vec3.html#a8e27eb76c794d600bc295748cddb6eda">nc::Vec3::operator/=</a></div><div class="ttdeci">Vec3 &amp; operator/=(double scalar) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:461</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a8e8cfef3d9f3f23df9fde19e5bf4a79d"><div class="ttname"><a href="classnc_1_1_vec3.html#a8e8cfef3d9f3f23df9fde19e5bf4a79d">nc::Vec3::operator-=</a></div><div class="ttdeci">Vec3 &amp; operator-=(double scalar) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:416</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a969dd1c195f4c78fc3a93292391e29c1"><div class="ttname"><a href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">nc::Vec3::y</a></div><div class="ttdeci">double y</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:55</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_a9831d738bbccbdc86ce117b18f107c0f"><div class="ttname"><a href="classnc_1_1_vec3.html#a9831d738bbccbdc86ce117b18f107c0f">nc::Vec3::operator*=</a></div><div class="ttdeci">Vec3 &amp; operator*=(double scalar) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:446</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_aaba2a76701fbf17582641cefeb513f1c"><div class="ttname"><a href="classnc_1_1_vec3.html#aaba2a76701fbf17582641cefeb513f1c">nc::Vec3::project</a></div><div class="ttdeci">Vec3 project(const Vec3 &amp;otherVec) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:301</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_aad142760da8d2b3493462b4542e42673"><div class="ttname"><a href="classnc_1_1_vec3.html#aad142760da8d2b3493462b4542e42673">nc::Vec3::operator!=</a></div><div class="ttdeci">bool operator!=(const Vec3 &amp;rhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:374</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_aafc14ccae575994733d664eb3f4a6e66"><div class="ttname"><a href="classnc_1_1_vec3.html#aafc14ccae575994733d664eb3f4a6e66">nc::Vec3::up</a></div><div class="ttdeci">static constexpr Vec3 up() noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:349</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_ab4878c8a4ebcd94fd0baf93059b50ac6"><div class="ttname"><a href="classnc_1_1_vec3.html#ab4878c8a4ebcd94fd0baf93059b50ac6">nc::Vec3::lerp</a></div><div class="ttdeci">Vec3 lerp(const Vec3 &amp;otherVec, double t) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:259</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_ac5a33c96c05a8c856b774c24f4a1965d"><div class="ttname"><a href="classnc_1_1_vec3.html#ac5a33c96c05a8c856b774c24f4a1965d">nc::Vec3::forward</a></div><div class="ttdeci">static constexpr Vec3 forward() noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:235</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_ac9f2bf549a4b800f140de060a0281a7e"><div class="ttname"><a href="classnc_1_1_vec3.html#ac9f2bf549a4b800f140de060a0281a7e">nc::Vec3::dot</a></div><div class="ttdeci">double dot(const Vec3 &amp;otherVec) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:213</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_adb18c9ba29affb8b712bb22a83e38e09"><div class="ttname"><a href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">nc::Vec3::Vec3</a></div><div class="ttdeci">constexpr Vec3()=default</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_adc1cd136818db0b150d1f141b917319c"><div class="ttname"><a href="classnc_1_1_vec3.html#adc1cd136818db0b150d1f141b917319c">nc::Vec3::operator+=</a></div><div class="ttdeci">Vec3 &amp; operator+=(const Vec3 &amp;rhs) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:401</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_aea160d6b860e0ed5d931c9494229b530"><div class="ttname"><a href="classnc_1_1_vec3.html#aea160d6b860e0ed5d931c9494229b530">nc::Vec3::toNdArray</a></div><div class="ttdeci">NdArray&lt; double &gt; toNdArray() const</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:337</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_af3203959755167f0be8f1a97625c33c6"><div class="ttname"><a href="classnc_1_1_vec3.html#af3203959755167f0be8f1a97625c33c6">nc::Vec3::operator+=</a></div><div class="ttdeci">Vec3 &amp; operator+=(double scalar) noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:386</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_af8173f6e61e9a63beae3092fd8dc4378"><div class="ttname"><a href="classnc_1_1_vec3.html#af8173f6e61e9a63beae3092fd8dc4378">nc::Vec3::cross</a></div><div class="ttdeci">Vec3 cross(const Vec3 &amp;otherVec) const noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:185</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html_af8862aed471260a45c7691c7c5c6b016"><div class="ttname"><a href="classnc_1_1_vec3.html#af8862aed471260a45c7691c7c5c6b016">nc::Vec3::right</a></div><div class="ttdeci">static constexpr Vec3 right() noexcept</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:313</div></div>
<div class="ttc" id="aessentially_equal_8hpp_html"><div class="ttname"><a href="essentially_equal_8hpp.html">essentiallyEqual.hpp</a></div></div>
<div class="ttc" id="ahypot_8hpp_html"><div class="ttname"><a href="hypot_8hpp.html">hypot.hpp</a></div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_a691a52cfcc401340af355bd53869600e"><div class="ttname"><a href="namespacenc_1_1utils.html#a691a52cfcc401340af355bd53869600e">nc::utils::interp</a></div><div class="ttdeci">constexpr double interp(double inValue1, double inValue2, double inPercent) noexcept</div><div class="ttdef"><b>Definition:</b> Utils/interp.hpp:41</div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_a963b90e7c9a3b057a924298750ddf74c"><div class="ttname"><a href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">nc::utils::essentiallyEqual</a></div><div class="ttdeci">bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept</div><div class="ttdef"><b>Definition:</b> essentiallyEqual.hpp:49</div></div>
<div class="ttc" id="anamespacenc_html"><div class="ttname"><a href="namespacenc.html">nc</a></div><div class="ttdef"><b>Definition:</b> Cartesian.hpp:40</div></div>
<div class="ttc" id="anamespacenc_html_a10ee4cd59b844c5dd99106a5dee12009"><div class="ttname"><a href="namespacenc.html#a10ee4cd59b844c5dd99106a5dee12009">nc::min</a></div><div class="ttdeci">NdArray&lt; dtype &gt; min(const NdArray&lt; dtype &gt; &amp;inArray, Axis inAxis=Axis::NONE)</div><div class="ttdef"><b>Definition:</b> min.hpp:44</div></div>
<div class="ttc" id="anamespacenc_html_a1ee81be5de9d41e4de28313054cf5581"><div class="ttname"><a href="namespacenc.html#a1ee81be5de9d41e4de28313054cf5581">nc::operator-</a></div><div class="ttdeci">Duration operator-(const DateTime &amp;lhs, const DateTime &amp;rhs) noexcept</div><div class="ttdoc">Subtraction operator.</div><div class="ttdef"><b>Definition:</b> DateTime/DateTime.hpp:551</div></div>
<div class="ttc" id="anamespacenc_html_a3353e2e3983e12e07ed79c022c4df5e8"><div class="ttname"><a href="namespacenc.html#a3353e2e3983e12e07ed79c022c4df5e8">nc::operator/</a></div><div class="ttdeci">NdArray&lt; dtype &gt; operator/(const NdArray&lt; dtype &gt; &amp;lhs, const NdArray&lt; dtype &gt; &amp;rhs)</div><div class="ttdef"><b>Definition:</b> NdArrayOperators.hpp:819</div></div>
<div class="ttc" id="anamespacenc_html_a4648674053cd83851d9549bbcc7a8481"><div class="ttname"><a href="namespacenc.html#a4648674053cd83851d9549bbcc7a8481">nc::hypot</a></div><div class="ttdeci">double hypot(dtype inValue1, dtype inValue2) noexcept</div><div class="ttdef"><b>Definition:</b> hypot.hpp:56</div></div>
<div class="ttc" id="anamespacenc_html_a736de91eb8f79bfaf4dc92d7161f1c87"><div class="ttname"><a href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">nc::cos</a></div><div class="ttdeci">auto cos(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> cos.hpp:49</div></div>
<div class="ttc" id="anamespacenc_html_a7c4b9b8d4ef61464e8ab35ad09b399c9"><div class="ttname"><a href="namespacenc.html#a7c4b9b8d4ef61464e8ab35ad09b399c9">nc::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, Duration duration)</div><div class="ttdoc">Output stream operator for the Duration type.</div><div class="ttdef"><b>Definition:</b> Clock.hpp:30</div></div>
<div class="ttc" id="anamespacenc_html_a7f453c0bb9e72eb38f1c84139cc1d5f4"><div class="ttname"><a href="namespacenc.html#a7f453c0bb9e72eb38f1c84139cc1d5f4">nc::operator+</a></div><div class="ttdeci">NdArrayConstIterator&lt; dtype, PointerType, DifferenceType &gt; operator+(typename NdArrayConstIterator&lt; dtype, PointerType, DifferenceType &gt;::difference_type offset, NdArrayConstIterator&lt; dtype, PointerType, DifferenceType &gt; next) noexcept</div><div class="ttdef"><b>Definition:</b> NdArrayIterators.hpp:302</div></div>
<div class="ttc" id="anamespacenc_html_aebe965a6c53907dc90c0b604da936078"><div class="ttname"><a href="namespacenc.html#aebe965a6c53907dc90c0b604da936078">nc::operator*</a></div><div class="ttdeci">NdArray&lt; dtype &gt; operator*(const NdArray&lt; dtype &gt; &amp;lhs, const NdArray&lt; dtype &gt; &amp;rhs)</div><div class="ttdef"><b>Definition:</b> NdArrayOperators.hpp:604</div></div>
<div class="ttc" id="anamespacenc_html_af37a6766f3bd9a7f83d32834d2a699b1"><div class="ttname"><a href="namespacenc.html#af37a6766f3bd9a7f83d32834d2a699b1">nc::max</a></div><div class="ttdeci">NdArray&lt; dtype &gt; max(const NdArray&lt; dtype &gt; &amp;inArray, Axis inAxis=Axis::NONE)</div><div class="ttdef"><b>Definition:</b> max.hpp:44</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_34171bd951b13a53aa9f237277a18e40.html">NumCpp</a></li><li class="navelem"><a class="el" href="dir_2e8552338a5fe196f81c9ab4a461b773.html">Vector</a></li><li class="navelem"><a class="el" href="_vec3_8hpp.html">Vec3.hpp</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
